﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ejoty
{
    class EjotyIO
    {
        static public char IntToString(int one)
        {
            char[] ioput = {' ','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y',
	'z','`','~','!','@','#','$','%','^','&','*','(',')','-','_','=','+','{','[','}',']','|','.',',','\0'};
            return ioput[one];
        }
        static public int CharToInt(string one)
        {
            string[] ioput = {" ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y",
	"z","`","~","!","@","#","$","%","^","&","*","(",")","-","_","=","+","{","[","}","]","|",".",",","\0"};
            int n;
            bool loopon = true;
            for (n = 0; loopon == true; n++)
            {
                if (ioput[n] == one)
                {
                    loopon = false;
                }
            }
            return n;
        }
    }
}
